package marketplace.web.beans;
import java.io.Serializable;  

import org.primefaces.model.chart.PieChartModel;  
  
public class ChartBean implements Serializable {  
  
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	PieChartModel piemodel;  
  
    public ChartBean() {  
        createPieModel();  
    }  
  
    public PieChartModel getPieModel() {  
        return piemodel;  
    }  
  
    private void createPieModel() {  
        piemodel = new PieChartModel();  
  
        piemodel.set("Brand 1", 540);  
        piemodel.set("Brand 2", 325);  
        piemodel.set("Brand 3", 702);  
        piemodel.set("Brand 4", 421);  
    }  
}  
